package me.jiatao.paging3.room

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "article_entity")
data class ArticleEntity(
    @PrimaryKey var dbID: Int? = null,

    @ColumnInfo(name = "id") var id: Int?,
    @ColumnInfo(name = "title") var title: String?,
    @ColumnInfo(name = "desc") var desc: String?,
    @ColumnInfo(name = "link") var link: String?,
    @ColumnInfo(name = "pic") var pic: String?,
) {
    constructor(dbID: Int?) : this(dbID, null, null, null, null, null)
}